<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: new_users.php 11 2013-09-21 11:43:11Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 11 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-09-21 11:43:11 +0000 (Sat, 21 Sep 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */


$customers = $db->db_query_limit("SELECT
									customers_id,
									customers_firstname,
									customers_lastname,
									customers_email_address
								FROM
									".TABLE_CUSTOMERS."
								WHERE
									customers_id != '1'
								ORDER BY
									customers_date_added DESC", 15, true);
									
if($customers->_numOfRows) {
?>
	<table width="100%" class="dataTable">
		<tr>
			<td width="1px"><b>ID</b></td>
			<td><b>Name</b></td>
			<td><b>Email</b></td>
		</tr>
		<?php
			while(!$customers->EOF) {
		?>
		<tr>
			<td><?php echo $customers->fields['customers_id'] ?></td>
			<td><?php echo $customers->fields['customers_firstname'].' '.$customers->fields['customers_lastname']; ?></td>
			<td><?php echo $customers->fields['customers_email_address']; ?></td>
		</tr>
		<?php
			$customers->MoveNext();
		}
		?>
	</table>
<?php
}else{
	?> 
	<table width="100%" class="dataTable">
		<tr>
			<td align="center">
				<em>Derzeit gibts es keine neuen Kunden.</em>
			<td>
		</tr>
	</table>
	<?php
}
?>